package org.demo.test;

import org.demo.dao.StrategeDao;
import org.demo.pojo.Stratege;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext.xml")
public class test {

    @Autowired
    private StrategeDao strategeDao;

    @Test
    public void test(){
        Stratege stratege = strategeDao.getOne(1);
        System.out.println(stratege.getName());
    }

}
